package com.dnjn.happiness.auth.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@RefreshScope
@ConfigurationProperties(prefix = "dingtalk")
@Data
@Component
public class DingTalkConfig {

    private String corpId;
    private String apiToken;

    private String appId;
    private String agentId;

    /** Client ID (原 AppKey 和 SuiteKey)	Client Secret (原 AppSecret 和 SuiteSecret) */
    private String clientId;
    private String clientSecret;

    private String iamClientId;
    private String iamClientSecret;
    private String iamUrl;

    private String iamRedirectUrl;

    private String api;

//    private String miniAppId;
    /** ↓↓↓↓第三方应用接入 * */

    private String suiteTicket;
    private String token;
    private String encodingAesKey;

//    #private String appKey;
//    private String appSecret;
}
